<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
		<head>
			<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
			<title>Document</title>
		</head>
		  <body>
		  	 <h2> 留言列表页面-<a href = '/MMSG_test'>添加留言</a> </h2>
		  	 <table border = '1' width = '100%' cellpadding = '0' cellspacing = '0' bgcolor = '#ABCDEF'>
		  	 	<tr>
		  	 		<td>ID</td>
		  	 		<td>标题</td>
		  	 		<td>内容</td>
		  	 		<td>留言者</td>
		  	 		<td>发布时间</td>
		  	 		<td>ip地址</td>
		  	 		<td>心情</td>
		  	 		<td>操作</td>
		  	 	</tr>
		  	 	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><tr>
				   	<td><?php echo ($data["id"]); ?></td>              
				   	<td><?php echo ($data["title"]); ?></td> 
				   	<td><?php echo ($data["content"]); ?></td>
				   	<td><?php echo ($data["username"]); ?></td>
				   	<td><?php echo ($data["time"]); ?></td>
				   	<td><?php echo ($data["ip"]); ?></td>
				   	<td><img src = "/MMSG_test/Public/images/<?php echo ($data["xinqing"]); ?>"></td>
				   	 <td><a href = "/MMSG_test/index.php/Home/Message/editMes?id=<?php echo ($data["id"]); ?>">更新</a>|<a href="/MMSG_test/Index.php/Home/Index/release?act=delMes&id=<?php echo ($data["id"]); ?>">删除</a></td> 
				   </tr><?php endforeach; endif; else: echo "" ;endif; ?>

		  	 </table>
		  </body>
		</html>